package javacore2ch5;

public class SalesClerk extends Employee {
	private double comission;
	public SalesClerk(String n, String t, double s, int year, int month, int day) {
		super(n, t, s, year, month, day) ;
		comission = 0;
	}
	public double getSalary() {
		double salaryBase = super.getSalary();
		if(comission > 3000) {
			return salaryBase + comission;
		} else {
			return super.getSalary();
		}
	}
	public void setComission(double c) {
		comission = c;
	}

}
